package com.share51.admin.service;

import com.share51.admin.entity.Role;
import com.share51.admin.util.PageUtil;

import java.util.List;

public interface RoleService {

    void addRole(Role role);

    void editRole(Role role);

    void deleteRole(int roleId);

    Role getRoleById(int roleId);

    List<Role> getRoleList(Role role, PageUtil pageUtil);

    int getRoleTotal(Role role);
}
